package org.zhaijisong.pojo;

import java.sql.Timestamp;

public class Vehicles {
    private Integer id;
    private Integer carId;
    private String number;
    private String load;
    private String driver;
    private String point;
    private String end;
    private Integer count;
    private Timestamp travelTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getLoad() {
        return load;
    }

    public void setLoad(String load) {
        this.load = load;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Timestamp getTravelTime() {
        return travelTime;
    }

    public void setTravelTime(Timestamp travelTime) {
        this.travelTime = travelTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Vehicles vehicles = (Vehicles) o;

        if (id != null ? !id.equals(vehicles.id) : vehicles.id != null) return false;
        if (carId != null ? !carId.equals(vehicles.carId) : vehicles.carId != null) return false;
        if (number != null ? !number.equals(vehicles.number) : vehicles.number != null) return false;
        if (load != null ? !load.equals(vehicles.load) : vehicles.load != null) return false;
        if (driver != null ? !driver.equals(vehicles.driver) : vehicles.driver != null) return false;
        if (point != null ? !point.equals(vehicles.point) : vehicles.point != null) return false;
        if (end != null ? !end.equals(vehicles.end) : vehicles.end != null) return false;
        if (count != null ? !count.equals(vehicles.count) : vehicles.count != null) return false;
        if (travelTime != null ? !travelTime.equals(vehicles.travelTime) : vehicles.travelTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (carId != null ? carId.hashCode() : 0);
        result = 31 * result + (number != null ? number.hashCode() : 0);
        result = 31 * result + (load != null ? load.hashCode() : 0);
        result = 31 * result + (driver != null ? driver.hashCode() : 0);
        result = 31 * result + (point != null ? point.hashCode() : 0);
        result = 31 * result + (end != null ? end.hashCode() : 0);
        result = 31 * result + (count != null ? count.hashCode() : 0);
        result = 31 * result + (travelTime != null ? travelTime.hashCode() : 0);
        return result;
    }
}
